import fileinput

with fileinput.input(files="example.txt") as f:
    for line in f:
        fields = line.split("|")
        print(fields, end="")

""" 运行结果

['11\n']['22\n']['33\n']['aa\n']['bb\n']['cc', '888\n']
"""